package edu.sctu.practice.class02.Wangpeng.Assign02;

/**
 * Created by wp on 2015/10/9.
 */
public class Rational {
    public double i;
    public double j;
    public double plus;
    public double minus;
    public double multiplicative;
    public double division;

    public Rational(double i, double j) {
        this.i = i;
        this.j = j;
    }

    public double getPlus() {
        plus = i + j;
        return plus;
    }

    public double getMinus() {
        minus = i - j;
        return minus;
    }

    public double getMultiplicative() {
        multiplicative = i * j;
        return multiplicative;
    }

    public double getdivision() {
        division = i / j;
        return division;
    }


}



